package demo.pattern.proxy.dynamic.cglib;

public class Test {
	public static void main(String[] args) {
		// 使用cglib往orderService的print方法中织入逻辑
		OrderService orderService = new OrderService();
		OrderMethodInterceptor methodInterceptor = new OrderMethodInterceptor();
		OrderService proxy = CglibUtils.newProxy(orderService, methodInterceptor);
		proxy.print();
	}
}
